package com.project.servic.impl;

import com.project.bean.ReplyBean;
import com.project.dao.IReplyDao;
import com.project.servic.IReplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReplyServiceImpl implements IReplyService {
    @Autowired
    private IReplyDao dao;
    @Override
    public List<ReplyBean> add(ReplyBean replyBean) {
        dao.add(replyBean);
        return dao.findById(replyBean.getPost().getId());
    }
}
